k = input().split()
a = []
s = len(k)
for i in range(100,1000):
    for y in range(2,i):
        if i%y==0:
            break
    else:
        a.append(i)
if  s != 3:
    print("Wrong input")
if k[0] == "zero":
    k[0] = 0    
if k[0] == "one":
    k[0] = 1
if k[0] == "two":
    k[0] = 2
if k[0] == "three":
    k[0] = 3
if k[0] == "four":
    k[0] = 4
if k[0] == "five":
    k[0] = 5    
if k[0] == "six":
    k[0] = 6
if k[0] == "seven":
    k[0] = 7
if k[0] == "eight":
    k[0] = 8
if k[0] == "nine":
    k[0] = 9

    
if k[1] == "zero":
    k[1] = 0
if k[1] == "one":
    k[1] = 1
if k[1] == "two":
    k[1] = 2
if k[1] == "three":
    k[1] = 3
if k[1] == "four":
    k[1] = 4
if k[1] == "five":
    k[1] = 5    
if k[1] == "six":
    k[1] = 6
if k[1] == "seven":
    k[1] = 7
if k[1] == "eight":
    k[1] = 8
if k[1] == "nine":
    k[1] = 9


if k[2]=="zero":
    k[2] = 0
if k[2] == "one":
    k[2] = 1
if k[2] == "two":
    k[2] = 2
if k[2] == "three":
    k[2] = 3
if k[2] == "four":
    k[2] = 4
if k[2] == "five":
    k[2] = 5    
if k[2] == "six":
    k[2] = 6
if k[2] == "seven":
    k[2] = 7
if k[2] == "eight":
    k[2] = 8
if k[2] == "nine":
    k[2] = 9

    
if k[0] == 0:
     print("Wrong input")
else:
    print(*k,sep='')
                                                       
